<template>
  <div class="app-main-container tabpdding">
    <el-tabs v-model="activeTab">
      <el-tab-pane :label="$t('message.yskmx')" name="0"><Statistic v-if="activeTab === '0'" ref="statistic" /></el-tab-pane>
      <el-tab-pane v-if="meta.indexOf('AdvcPageListV') > -1" :label="$t('message.qqmx')" name="1"><AdvcPageList v-if="activeTab === '1'" /></el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import Statistic from './list.vue'
import AdvcPageList from '../advcPageList/index.vue'
export default {
  name: 'AdvPageList',
  components: {
    Statistic,
    AdvcPageList
  },
  data() {
    return {
      activeTab: '0'
    }
  },
  created() {
    const meta = this.$route.meta.buttons || []
    this.meta = meta
  }

}
</script>

